<?php

function outEmployeeMessage($wages)
{
    foreach ($wages as $bmName => $bumen) {
        echo $bmName, "部门人员如下： \n";
        foreach ($bumen as $person) {
            foreach ($person as $item) {
                echo $item, "\t";
            }
            echo "\n";
        }
    }

}

$wages = [
    "市场部" => [
        [1, "杨朝", "市场经理", 8800],
        [2, "王玲", "市场专员", 5800],
    ],
    "产品部" => [
        [1, "邓健", "产品经理", 9100],
        [2, "白伟", "产品专员", 6300],
    ],
    "财务部" => [
        [1, "曹晖", "账务经理", 7500],
        [2, "陈炳良", "账务专员", 4800],
        [3, "丁国华", "账务专员", 5000],
    ],
];
outEmployeeMessage($wages);

